package com.example.thread;

public class TestThread extends Thread{

    @Override
    public void run() {
        for (int i = 0;i <20; i++)
        {
            System.out.println("我在看代码"+i);
        }
    }

    public static void main(String[] args) {
        TestThread a = new TestThread();
        a.start();
        for (int i = 0;i <20; i++)
        {
            System.out.println("我在学习代码"+i);
        }
    }

}

